package com.hutao.medical.pojo.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hutao.medical.common.util.StringUtil;

/**
 * 压疮/床褥明细
 * @author lyh
 *
 */
public class HospitalVisitPressureSoreRecord {

	/**
	 * 发生时间
	 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date occurDateTime;
	
	/**
	 * 压疮分期编号
	 */
	private String pressureSoreCradleCode;
	
	/**
	 * 压疮分期名称
	 */
	private String pressureSoreCradleName;
	
	/**
	 * 压疮等级Id
	 */
	private String pressureSorePhaseCode;
	
	/**
	 * 压疮等级名称
	 */
	private String pressureSorePhaseName;
	
	/**
	 * 压疮部位编号
	 */
	private String pressureSorePartCode;
	
	/**
	 * 压疮部位名字
	 */
	private String pressureSorePartName;
	
	/**
	 * 登记日期
	 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date registerDateTime;
	
	@JsonIgnore
    public boolean isEmpty(){
    	if(this.getPressureSorePartName() == null && this.getRegisterDateTime() == null){
    		return true;
    	}
    	return false;
    }

	public Date getOccurDateTime() {
		return occurDateTime;
	}

	public void setOccurDateTime(Date occurDateTime) {
		this.occurDateTime = occurDateTime;
	}

	public String getPressureSoreCradleCode() {
		return StringUtil.meaningStr(pressureSoreCradleCode);
	}

	public void setPressureSoreCradleCode(String pressureSoreCradleCode) {
		this.pressureSoreCradleCode = pressureSoreCradleCode;
	}

	public String getPressureSoreCradleName() {
		return StringUtil.meaningStr(pressureSoreCradleName);
	}

	public void setPressureSoreCradleName(String pressureSoreCradleName) {
		this.pressureSoreCradleName = pressureSoreCradleName;
	}

	public String getPressureSorePhaseCode() {
		return StringUtil.meaningStr(pressureSorePhaseCode);
	}

	public void setPressureSorePhaseCode(String pressureSorePhaseCode) {
		this.pressureSorePhaseCode = pressureSorePhaseCode;
	}

	public String getPressureSorePhaseName() {
		return StringUtil.meaningStr(pressureSorePhaseName);
	}

	public void setPressureSorePhaseName(String pressureSorePhaseName) {
		this.pressureSorePhaseName = pressureSorePhaseName;
	}

	public String getPressureSorePartCode() {
		return StringUtil.meaningStr(pressureSorePartCode);
	}

	public void setPressureSorePartCode(String pressureSorePartCode) {
		this.pressureSorePartCode = pressureSorePartCode;
	}

	public String getPressureSorePartName() {
		return StringUtil.meaningStr(pressureSorePartName);
	}

	public void setPressureSorePartName(String pressureSorePartName) {
		this.pressureSorePartName = pressureSorePartName;
	}

	public Date getRegisterDateTime() {
		return registerDateTime;
	}

	public void setRegisterDateTime(Date registerDateTime) {
		this.registerDateTime = registerDateTime;
	}
	
	
	
}
